home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13289 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  748 b 

  1. Path: nuscc.nus.sg!eng30183
  2. From: eng30183@leonis.nus.sg (LEONG TUCK WAI)
  3. Newsgroups: comp.lang.c
  4. Subject: convert 4 8-bit bytes in a foat
  5. Date: 6 Apr 1996 12:59:19 GMT
  6. Organization: National University of Singapore
  7. Message-ID: <4k5pr7$bp7@nuscc.nus.sg>
  8. NNTP-Posting-Host: eng30183@leonis.nus.sg
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Hi,
  12.  
  13. I have 4 8-bit bytes. If I line them up in order, they actually represent 
  14. the 32-bit float data type version of a decimal point number. So, how do 
  15. I get the compiler to understand that, and print out the float number 
  16. instead of giving me 4 integers?
  17.  
  18.  
  19. Thanks in advance.
  20.  
  21. Regards,
  22. Keith
  23.  
  24.  
  25.  
  26. --
  27. ============== Keith Leong
  28. ############## Tuck Wai
  29. email: eng30183@leonis.nus.sg
  30. National University of Singapore
  31.